package com.nwpu.coursesupport.service;

import com.nwpu.coursesupport.entity.bean.JSONResult;
import com.nwpu.coursesupport.exception.GenGradeException;
import com.nwpu.coursesupport.service.param.CalculateGradeParam;
import com.nwpu.coursesupport.service.param.GenGradeServiceParam;
import com.nwpu.coursesupport.service.param.IDParam;
import com.nwpu.coursesupport.view.CourseGradeRateView;

public interface GenGradeService {

	public JSONResult getCourseRate(IDParam p) throws Exception;
	
	public JSONResult updateCourseRate(CourseGradeRateView view) throws Exception;
	
	public JSONResult getTaskList(IDParam p) throws Exception;
	
	public JSONResult updateTaskGradeStatus(GenGradeServiceParam p) throws GenGradeException;
	
	public JSONResult genTaskGrade(IDParam p) throws GenGradeException;
	
	public JSONResult batchUpdateGrade(CalculateGradeParam.BatchUpdateGradeParam p) throws GenGradeException;
	
	public JSONResult updateGrade(CalculateGradeParam.UpdateGradeParam p) throws Exception;
}
